package efrei.ete.bean;

import java.util.Date;

public class Floor {

    private int globalId;
    private int postId;		//which post
    private boolean first;	//record whether the floor is first floor
    private String subject;
    private int authorID;
    private Date postTime;	//Here, TIME should be included, FIND another class!
    private String message;

    public Floor(int globalId, int postId, boolean first, String subject, int authorID, Date postTime, String message) {
        this.globalId = globalId;
        this.postId = postId;
        this.first = first;
        this.subject = subject;
        this.authorID = authorID;
        this.postTime = postTime;
        this.message = message;
    }

    public boolean strorePost() {
        //in the class postId is returned and store in postId
        return false;
    }

    public boolean storeFloor() {
        return false;
    }

    //A Series of getter function to get exactly every item of the floor
    public int getAuthorID() {
        return authorID;
    }

    public boolean isFirst() {
        return first;
    }

    public int getGlobalId() {
        return globalId;
    }

    public String getMessage() {
        return message;
    }

    public int getPostId() {
        return postId;
    }

    public Date getPostTime() {
        return postTime;
    }

    public String getSubject() {
        return subject;
    }
}